import type { App, Directive } from 'vue'
import hasPermi from './permission/hasPermi'

const directives: { [key: string]: Directive } = {
  hasPermi
}

export default {
  install: (app: App<Element>) => {
    Object.keys(directives).forEach((key) => {
      app.directive(key, directives[key])
    })
  }
}
